const mongoose = require('mongoose')
exports = (name, Schema) => {

    const appSchema = new mongoose.Schema(Schema, { timestamps: { createdAt: 'created', updatedAt: 'updated' } })

    module.exports = mongoose.model(name, appSchema)
}